
/**
 * AppleIIGo
 * RTC (Real Time Clock) class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */
 
#include "Motherboard.h"

#ifndef RTC_H
#define RTC_H

#define RTCCONTROL_LASTBYTE		(1 << 5)
#define RTCCONTROL_READ			(1 << 6)
#define RTCCONTROL_START		(1 << 7)

class RTC : public Device {
public:
	RTC(class Motherboard * motherboard);
	
	void setControlRegister(UINT8 value);
	UINT8 getControlRegister();
	
	void sendData(UINT8 value);
	UINT8 receiveData();
	
private:
	UINT8 controlRegister;	
};

#endif
